import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

import ElementUI from 'element-ui';
Vue.use(ElementUI);
import store from './store/index';

import 'element-ui/lib/theme-chalk/base.css';
import './util/rem.js'

import './components/index.js'//注册全局组件

import './assets/css/main.scss'

// 定义全局方法 $enter
Vue.prototype.$enter = function (parma, id) {
  console.log('全局的 enter： ', parma, id);
  uni.navigateTo({
    // url: `/pages${parma}/Index`,
    url: `/pages${parma}`,
  })
};


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif